<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <link rel="icon" href="/mobile/img/favicon.ico">
  <title>四川贝贝语音科技发展有限责任公司</title>
  <link rel="stylesheet" href="/mobile/css/index.css" />
  <link rel="stylesheet" href="/mobile/css/swiper-bundle.min.css" />
  <script src="/mobile/js/vue.js"></script>
  <script src="/mobile/js/vant.min.js"></script>
  <script src="/mobile/js/swiper-bundle.min.js"></script>
  <style>
  html,
  body {
    position: relative;
    height: 100%;
  }

  body {
    background: #cee1ff;
    font-family: '微软雅黑';
    color: #000;
    margin: 0;
    padding: 0;
    user-select: none;
  }
  #app {
    width: 100%;
    height: 100%;
  }

  .swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .download-btn {
    width: calc(100% - 130px);
    box-sizing: border-box;
    position: fixed;
    bottom: 34px;
    left: 20px;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
  }
  .van-overlay {
    z-index: 9999;
  }
  .mask {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .content {
    padding: 0 16px 16px;
    margin-bottom: 10px;
  }
  .donwload-item {
    display: flex;
    align-items: center;
    padding: 11px 0;
  }
  .market-name {
    font-size: 14px;
    margin-left: 10px;
    color: #000;
    font-weight: 500;
  }
  .icon {
    border-radius: 5px;
  }

  </style>
</head>

<body>
  <div id="app">
    <van-overlay :show="showMask" @click="showMask = false">
      <img class="mask" src="/mobile/img/mask2.png" alt="">
    </van-overlay>
    <div class="swiper">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="/mobile/img/m1.jpg" alt="">
        </div>
        <div class="swiper-slide">
          <img src="/mobile/img/m2.jpg" alt="">
        </div>
        <div class="swiper-slide">
          <img src="/mobile/img/m3.jpg" alt="">
        </div>
        <div class="swiper-slide">
          <img src="/mobile/img/m4.jpg" alt="">
        </div>
      </div>
      <van-button class="download-btn" round block color="linear-gradient( 270deg, #9358F4 0%, #6E53F3 100%)" @click="download">下载贝贝语音</van-button>
      <van-action-sheet v-model="showActionSheet" :closeable="false" title="选择下载方式">
        <div class="content">
          <div class="donwload-item" v-for="(item, index) in downloadList" :key="index" @click="jumpUrl(item.url)">
            <img class="icon" :src="item.img" width="30" height="30" alt="">
            <span class="market-name">{{item.label}}</span>
          </div>
        </div>
      </van-action-sheet>
    </div>
  </div>
  <script>
  new Vue({
    el: '#app',
    data: {
      showMask: false,
      isWx: false,
      isIOS: false,
      showActionSheet: false,
      downloadList: [{
        img: '/mobile/img/baidu.png',
        label: '百度应用商店',
        url: 'https://mobile.baidu.com/item?docid=5009987081&f0=search_searchContent%400_appBaseNormal%400&advitem=source%2Bnatural%40pos%2B1%40bid%2B0%40ctr%2B0.000000%40trans%2B%40keyword%2B%E8%B4%9D%E8%B4%9D%E8%AF%AD%E9%9F%B3%40app_rcv%2B'
      },
      //  {
      //   img: '/mobile/img/vivo.png',
      //   label: 'VIVO应用商店',
      //   url: 'https://h5.appstore.vivo.com.cn/#/details?search_word=%E8%B4%9D%E8%B4%9D%E8%AF%AD%E9%9F%B3&search_action=3&app_id=3648270&app_pos=1&source=5&appId=3648270&frompage=searchResultApp&listpos=1'
      // },
       {
        img: '/mobile/img/huawei.png',
        label: '华为应用商店',
        url: 'https://appgallery.huawei.com/app/C110385907'
      }, {
        img: '/mobile/img/yyb.png',
        label: '腾讯应用宝',
        url: 'https://sj.qq.com/appdetail/com.chc.bbvoice?supply_id=2700200680&ocpc=0&landing_type=pcyyb&keyword_id=1726108881802&plan_id=1726108881802&group_id=1726108881802&account_id=30000000&creative_id=1726108881802&use_previous_query=1&q=%E8%B4%9D%E8%B4%9D%E8%AF%AD%E9%9F%B3'
      }, {
        img: '/mobile/img/logo.jpg',
        label: '直接下载',
        url: 'https://apk.zgbbyy.com/app/bbyy.apk'
      }]
    },
    mounted () {
      var userAgent = navigator.userAgent
      this.isWx = userAgent.includes('MicroMessenger')
      this.isIOS = userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)
      const swiper = new Swiper('.swiper', {
        direction: 'vertical',
        mousewheel: true
      })
    },
    methods: {
      download () {
        if (this.isIOS) {
          location.href = 'https://apps.apple.com/cn/app/id6445904230'
        } else {
          if (this.isWx) {
            // 应用宝
            location.href = 'https://sj.qq.com/appdetail/com.chc.bbvoice?supply_id=2700200680&ocpc=0&landing_type=pcyyb&keyword_id=1726108881802&plan_id=1726108881802&group_id=1726108881802&account_id=30000000&creative_id=1726108881802&use_previous_query=1&q=%E8%B4%9D%E8%B4%9D%E8%AF%AD%E9%9F%B3'
            // this.showMask = true
            return
          }
          this.showActionSheet = true
        }
      },
      jumpUrl (url) {
        location.href = url
      }
    }
  })
  </script>
</body>

</html>